/*
 * @Description: 公共接口，该js中的接口需要走权限管理
 * @Author: Boide
 * @Date: 2021-09-10 18:56:47
 * @LastEditors: guiyi@hongyi.tech
 * @LastEditTime: 2021-09-15 10:55:27
 */
import http from '@/utils/request'

// 登录用户
export const login = (data) => http.postJson('/login', data)

// 退出登录
export const logout = () => http.get('/logout')

// 获取上传接口地址
export const getUploadUrl = (type) => http.get(`/file/getUploadUrl/${type}`)
